<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    // 声明式
    function fn(){
        console.log("hello world");
    }
    console.log( fn );
    console.log( typeof fn );

    // 赋值式
    var fun = function(){
        console.log("hello js")
    }
    console.log( fun );
    console.log( typeof fun );

    // 任何两个对象都不相等，如果相等了就是同一个对象

    // 函数是一种特殊的对象，函数对象

    function fn2(){
        console.log("hello world");
    }

    console.log( fn === fn2 );

    var fn3 = fn;

    console.log( fn === fn3 );

</script>
</html>